package suray.rgv.communication.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 查询任务列表
 */
@Data
public class CheckRgvTasks {
    @JsonProperty("task_ids")
    private List<String> task_ids;

    public CheckRgvTasks() {
        task_ids = new ArrayList<>();
    }

    public boolean addTask(String taskId) {
        return task_ids.add(taskId);
    }
}
